package _1._0._0._127.ormrpc.services.WSPurInWarehsBillFacade;

public class WSPurInWarehsBillFacadeSrvProxyProxy implements WSPurInWarehsBillFacadeSrvProxy {
    private String _endpoint = null;
    private WSPurInWarehsBillFacadeSrvProxy wSPurInWarehsBillFacadeSrvProxy = null;

    public WSPurInWarehsBillFacadeSrvProxyProxy() {
        _initWSPurInWarehsBillFacadeSrvProxyProxy();
    }

    public WSPurInWarehsBillFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSPurInWarehsBillFacadeSrvProxyProxy();
    }

    private void _initWSPurInWarehsBillFacadeSrvProxyProxy() {
        try {
            wSPurInWarehsBillFacadeSrvProxy = (new WSPurInWarehsBillFacadeSrvProxyServiceLocator()).getWSPurInWarehsBillFacade();
            if (wSPurInWarehsBillFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSPurInWarehsBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSPurInWarehsBillFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSPurInWarehsBillFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSPurInWarehsBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSPurInWarehsBillFacadeSrvProxy getWSPurInWarehsBillFacadeSrvProxy() {
        if (wSPurInWarehsBillFacadeSrvProxy == null)
            _initWSPurInWarehsBillFacadeSrvProxyProxy();
        return wSPurInWarehsBillFacadeSrvProxy;
    }

    public String[] importData(String xmlData) throws java.rmi.RemoteException, purinwarehsbillfacade.client.WSInvokeException {
        if (wSPurInWarehsBillFacadeSrvProxy == null)
            _initWSPurInWarehsBillFacadeSrvProxyProxy();
        return wSPurInWarehsBillFacadeSrvProxy.importData(xmlData);
    }


}